<?php
namespace app\clean\controller;

use think\Controller;
use tp5_lib\clean\utility\Clean;

/**
 * 定时清理运行时产生的文件
 */
class IndexController extends Controller
{
    public function index()
    {
        return "<a href=".url("log").">清理日志</a>";
    }
    public function log()
    {
        $clean=new Clean();
        $clean->cleanRuntimeFile(["log"]);
        return "ok";
    }
}
